package com.telit.uav.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;


/**
 * t_sys_config
 * @author 
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class SysConfig implements Serializable {

    @ApiModelProperty(value = "主键id")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 参数名称
     */
    @NotBlank(message = "参数名称不能为空")
    @ApiModelProperty(value = "参数名称")
    private String configName;

    /**
     * 参数键名
     */
    @NotBlank(message = "参数键值对名称不能为空")
    @ApiModelProperty(value = "参数键值名称")
    private String configKey;

    /**
     * 参数键值
     */
    @NotBlank(message = "参数键值不能为空")
    @ApiModelProperty(value = "参数键值")
    private String configValue;

    /**
     * 系统内置 0 否 1 是
     */
    @ApiModelProperty(value = "系统内置,0是,1否")
    private Integer configType;

    /**
     * 状态 0 正常 1 禁用
     */
    @ApiModelProperty(value = "状态,0正常,1禁用")
    private Integer status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    private Date createTime;

    private Date updateTime;

    private String createUser;

    private String updateUser;

    private static final long serialVersionUID = 1L;
}